package com.ruoyi.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户地址对象 addresses
 *
 * @author ruoyi
 * @date 2024-06-28
 */
public class Addresses extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址id */
    private Long addressId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String addressLine;

    /** 是否默认 */
    @Excel(name = "是否默认")
    private Integer isDefault;

    public void setAddressId(Long addressId)
    {
        this.addressId = addressId;
    }

    public Long getAddressId()
    {
        return addressId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setAddressLine(String addressLine)
    {
        this.addressLine = addressLine;
    }

    public String getAddressLine()
    {
        return addressLine;
    }
    public void setIsDefault(Integer isDefault)
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault()
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("userId", getUserId())
            .append("addressLine", getAddressLine())
            .append("isDefault", getIsDefault())
            .toString();
    }
}
